package com.edu.study.base.stuQuestionRelation.mapper;


import com.edu.study.base.stuQuestionRelation.domain.StuQuestionRelationRy;

import java.util.List;

/**
 * 题库关系Mapper接口
 *
 * @author jjt
 * @date 2021-02-27
 */
public interface StuQuestionRelationRyMapper
{
    /**
     * 查询题库关系
     *
     * @param id 题库关系ID
     * @return 题库关系
     */
    public StuQuestionRelationRy selectStuQuestionRelationRyById(String id);

    /**
     * 查询题库关系列表
     *
     * @param stuQuestionRelationRy 题库关系
     * @return 题库关系集合
     */
    public List<StuQuestionRelationRy> selectStuQuestionRelationRyList(StuQuestionRelationRy stuQuestionRelationRy);


    /**
     * 新增题库关系
     *
     * @param stuQuestionRelationRy 题库关系
     * @return 结果
     */
    public int insertStuQuestionRelationRy(StuQuestionRelationRy stuQuestionRelationRy);

    public int insertStuQuestionRelationList(List<StuQuestionRelationRy> stuQuestionRelationList);

    /**
     * 修改题库关系
     *
     * @param stuQuestionRelationRy 题库关系
     * @return 结果
     */
    public int updateStuQuestionRelationRy(StuQuestionRelationRy stuQuestionRelationRy);

    /**
     * 删除题库关系
     *
     * @param id 题库关系ID
     * @return 结果
     */
    public int deleteStuQuestionRelationRyById(String id);

    public int deleteStuQuestionRelationRyByBussId(String bussId);

    public int deleteStuQuestionRelationRyByCourseId(String courseId);


    /**
     * 批量删除题库关系
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteStuQuestionRelationRyByIds(String[] ids);

    public int deleteStuQuestionRelationRyByQuestionIds(String[] ids);

    public int deleteStuQuestionRelationRyByBussIds(String[] ids);

}
